home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / computer / casio_st / prog_fx / oisac2 / l_6670.txt < prev    next >
Text File  |  1994-03-01  |  746b  |  20 lines

  1. 10 MODE8:DIM:GOSUB900:c$=CHR$(5):f=95:r=0:s=0
  2. 45 CLS:PRINT"B(1,p) a<p<b";
  3. 50 z=r:s$="n":GOSUB500:r=z
  4. 60 z=s:s$="äx":GOSUB500:s=z
  5. 90 CLS:PRINT"Confidence level (1-à)[%]";
  6. 95 z=f:s$="1-à":GOSUB500:f=z:IFf<0 ORf>100 THEN95
  7. 97 CLS:PRINT"B(1,p)   ";f;"%";TAB(0);".....";
  8. 100 p=(1-f/100)/2:sr=0:GOSUB"LIB0:S6410":GOSUB900:IFsr THEN*
  9. 110 e=s/r:z=e-x*SQR(((1-e)*e)/r):GOSUB400:a=z
  10. 120 z=e+x*SQR(((1-e)*e)/r):GOSUB400:b=z
  11. 130 PRINTc$;a;"< p <";b;:a$=INPUT$(1,@):GOTO45
  12. 140 GOTO50
  13. 400 IFz THENz=ROUND(z,LOG(ABSz)-5)
  14. 410 RETURN
  15. 500 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@10;z:LOCATE0,0:RETURN
  16. 900 ONERRORGOTO910:RETURN
  17. 910 IFERR=1 THENCLS:ONERRORGOTO0
  18. 920 IFERL=500 THENRESUME500
  19. 930 LOCATE0,1:PRINTc$;"not found";:z$=INPUT$(1,@):RESUME45
  20.